package com.hery.core;





public abstract class AbstractEndpoint {
    private int                   timeout;

    private int                   connectTimeout;

    private  String host;
    private  int port;

    private volatile boolean     closed;

    protected int getTimeout() {
        return timeout;
    }

    protected int getConnectTimeout() {
        return connectTimeout;
    }
    public void close() {
        closed = true;
    }

    public void close(int timeout) {
        close();
    }


    public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public boolean isClosed() {
        return closed;
    }
	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}
	public void setConnectTimeout(int connectTimeout) {
		this.connectTimeout = connectTimeout;
	}
    
}
